move routes to controllers