updating templates for all pages