seperate routes and controller