         self.startConversation()
     }
     internal func onContextChange(context:LocalContext){
-        if let prof = context.get_profile() where !context.is_updating() && !self.conv_started{
+        if let _ = context.get_profile() where !context.is_updating() && !self.conv_started{
             self.conv_started = true
             self.sendmessage("")
         }

    }
    
    func tapped() {
        // TODO handle mic button // print(t.view)
        let stt = self.getStt()
        if (stt.recognizing) {
            print("pause stt")

        nc.addObserver(self, selector: #selector(restartConversation), name: "RestartConversation", object: nil)
        nc.addObserver(self, selector: #selector(requestDialogEnd), name: REQUEST_DIALOG_END, object: nil)
        nc.addObserver(self, selector: #selector(requestDialogAction), name: REQUEST_DIALOG_ACTION, object: nil)
    }
    
    internal func updateView() {
        if let nc = self.navigationController {
            nc.navigationBar.userInteractionEnabled = cancellable;
            nc.interactivePopGestureRecognizer!.enabled = cancellable;
            nc.navigationBar.tintColor = cancellable ? tintColor : UIColor.lightGrayColor()
        }
    }

    override func viewWillAppear(animated: Bool) {
        self.updateView()
    }
    
    override func viewDidAppear(animated: Bool) {
        NSNotificationCenter.defaultCenter().postNotificationName("RestartConversation", object: self)
    }
    
    override func viewWillDisappear(animated: Bool) {
        NSNotificationCenter.defaultCenter().postNotificationName("ResetConversation", object: self)
        self.updateView()
    }
    
    private func validateSecurity(){
        AVCaptureDevice.requestAccessForMediaType(AVMediaTypeAudio, completionHandler: {(granted: Bool) in
        })
        self.conv_context_local.verify_security()
    }
    
    internal func requestDialogEnd() {
        if cancellable {
            self.navigationController?.popToRootViewControllerAnimated(true)
        } else {
            NavSound.sharedInstance().playFail()
        }
    }
    internal func requestDialogAction() {
        self.tapped()
