     
     func didPressedCancelModal() {
         
-        let vc = self as! UIViewController
-        vc.dismiss(animated: true, completion: nil)
+        self.dismissModalViewController(animated: true)
     }
     
     func didPressedBackModal() {

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

    var reachabilityManager: ReachabilityManagerProtocol? {get set}
    var localizationManager: LocalizationManagerProtocol? {get set}
    var userManager: UserManagerProtocol? {get set}
    
    // MARK: Common module loading flow
    
    func prepareUI()
    func renderUI()
    func loadModel()
    
    // MARK: Logout
    func logoutAndGoBackToAppStart(error: ErrorEntity?)
    
