refactoring front_page