footer refactoring