add header and footer on templtes