Applied template to all pages