set up actions in controller