updated locationcontroller