handle location updates in the UI