     
     @IBAction func cancelPressed(_ sender: AnyObject) {
         self.bluepeerObject?.disconnectSession()
-        self.dismiss(animated: true, completion: nil)
+        self.dismiss(animated: true, completion: {
+            self.browserCompletionBlock?(false)
+        })
     }
     
     func timerFired(_ timer: Timer) {

    
    override open func viewDidLoad() {
        super.viewDidLoad()
        guard let bo = bluepeerObject else {
            assert(false, "ERROR: set bluepeerObject before loading view")
            return

        self.lastTimerStarted = nil
        self.timer?.invalidate()
        self.timer = nil
    }

    override open var prefersStatusBarHidden: Bool {
        return false
    }
    
    override open var preferredStatusBarStyle: UIStatusBarStyle {
        return .default
    }

    // MARK: - Table view data source
