Updating the template and pages