breaking header and footer out of template