created a module for controllers and seperated out the factory