Put everything in a manager and made the controller thin