How to use the callback functions for manager actions