refactoring footer for mobile view