changed the header and footer to directives