refactor footer and header