Refactor header, footer, pages in own model file