remove unused routes
moved functions to appropriate controllers, views