Create an action function to the heavy lifting
Modify the controller to just use the action