refactoring footer and layout desicions