     func dismissModalViewController(animated: Bool) {
         
         let vc = self as! UIViewController
-        vc.presentingViewController?.dismiss(animated: animated, completion: {
-            //...
+        vc.dismiss(animated: true, completion: {
+            
+            //
         })
+        /*vc.presentingViewController?.dismiss(animated: animated, completion: {
+         //...
+         })*/
     }
     
     // MARK: Logout

    
    func didPressedRight() {
        
        let vc: UIViewController = (self.viewControllerFactory?.contactViewController(context: nil))!
        
        self.presentModal(viewController:vc, animated: true)
    }
    
    internal func didPressedBack() {

    
    func didPressedCancelModal() {
        
        self.dismissModalViewController(animated: true)
    }
    
    func didPressedBackModal() {
