set up routes and partials