refactored the controller class to new file. Who knows if this is proper Slim usage.