refactor topics#index