seperated the controller into seperate files