refactor the controller breaking it up into two smaller controllers.