Added template and formatted pages to template.