simplifying header and footer