deleted the location find in view and added a helper to do this function