Implemented the confirm dialog for location change