Added couple lines so when a pin is selected on the map, it updates the shared Location object