refactoring routes, controllers, styles, structure