Moved header and footer to layout