refactoring locations#index