refactoring front page