Fixed issue with including tempalte views in teh correct order so template body content does not render above the html tag in the source code.