adds header and footer buttons