Auto loading header and footer