set up routes and controllers