refactored MainController, add routes (commented out)