refactor home/index