adding page template to main