add logics for queryGeofence and refresh all Geofences in UI