Added support for global header and footer