refactor home#index