Moved header and footer into layout view