     
     
     var connection: Connection?
+    var connectionRemoved = false
     
     override func viewDidLoad() {
         super.viewDidLoad()

        guard let openTime = settingsOpenTime else {
            return
        }
        
        let customData: [String : Any] = ["view" : getViewName(),
                                          "target" : "back",
                                          "show_duration": Int(Date.getCurrentMillis() - openTime)]
        
        let signal = TelemetryLogEventType.Connect("click", customData)
        TelemetryLogger.sharedInstance.logEvent(signal)
        
        settingsOpenTime = nil

    //MARK: - Private Helpers
    func removeConnection() {
        ConnectManager.sharedInstance.removeConnection(connection)
        connectionRemoved = true
        self.navigationController?.popViewController(animated: true)
        logAlterConnectionTelemetrySingal("remove")
    }
