         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("")
         }

        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)
        
    }

    override func viewWillAppear(animated: Bool) {
        self.navigationController!.navigationBar.userInteractionEnabled = false;
        self.navigationController!.interactivePopGestureRecognizer!.enabled = false;
        self.navigationController!.navigationBar.tintColor = UIColor.lightGrayColor()        
    }
    override func viewDidAppear(animated: Bool) {
        NSNotificationCenter.defaultCenter().postNotificationName("RestartConversation", object: self)
    }
    override func viewWillDisappear(animated: Bool) {
        NSNotificationCenter.defaultCenter().postNotificationName("ResetConversation", object: self)
        self.navigationController!.navigationBar.userInteractionEnabled = true;
        self.navigationController!.interactivePopGestureRecognizer!.enabled = true;
        self.navigationController!.navigationBar.tintColor = self.tintColor;
    }
    private func validateSecurity(){
        AVCaptureDevice.requestAccessForMediaType(AVMediaTypeAudio, completionHandler: {(granted: Bool) in
        })
        self.conv_context_local.verify_security()
    }
    internal func requestDialogEnd() {
        self.navigationController!.navigationBar.userInteractionEnabled = true
        self.navigationController!.interactivePopGestureRecognizer!.enabled = true
        self.navigationController!.navigationBar.tintColor = self.tintColor
        self.navigationController?.popToRootViewControllerAnimated(true)
    }
    internal func requestDialogAction() {
        self.tapped()

        if let fin:Bool = resobj!.context["finish"] as? Bool{ 
            if fin {
                postEndDialog = {
                    self.cancellable = true
                    self.updateView()

                    if self.root != nil {
                        self.navigationController?.popToViewController(self.root!, animated: true)
