refactor header and footer to partial