refactored the home page