Split the layout into header, footer, etc