handled null reference to geofencing so can skip geofence.addRegsion for debug in browser and added recordClickListner