refactoring home page and modify the style