applied template to static pages