Updated update_locations controller action - hopefully this works