adding callback to controller action