Added template code for each page.