                 beaconRegion.startMonitoringRegion = {
                     BeaconManager.sharedInstance().startRangingBeaconsInRegion(beaconRegion)
                     self.setScanButton()
+                    self.isRanging[name] = false
+                    self.isInRegion[name] = false
                     Logger.debug("BeaconRegionsViewController#startMonitoring: started monitoring region \(name)")
                 }
                 beaconRegion.enterRegion = {

            } else {
                cell.accessoryType = .DisclosureIndicator
            }
        } else  if self.isInRegion {
            cell.accessoryType = .None
            cell.rangingActivityIndicator.startAnimating()
        } else {

    var startScanBarButtonItem  : UIBarButtonItem!
    var beaconRegions           = [String:BeaconRegion]()

    var isRanging               = [String:Bool]()
    var isInRegion              = [String:Bool]()
    
    struct MainStoryBoard {
        static let beaconRegionCell         = "BeaconRegionCell"
