adds header and footer sidebars to templates