Move header, footer of pages to layout template.