refactor home page layout