split header and footer