set up route to template