requiring first template and setting up route