refactored routes
added controllers