Splitting the header and footer