add the header and footer elements