Split out the header and footer