refactored home page