combine header/footer into layout