moved open and closing main tag with wrapper out of separate page templates and into header and footer