adds header and footer