added formatting for header and footer