setting up templates for the front end