profile controllers refactorized, 1 controller per file and minimal modifications, changed switch for object literal in main_controller