Refactored footer code into separate directive.