     interfaceController?.popTemplate(animated: animated)
   }
   
+  func presentAlert(_ template: CPAlertTemplate, animated: Bool) {
+    interfaceController?.dismissTemplate(animated: false)
+    interfaceController?.presentTemplate(template, animated: animated)
+  }
+  
   func cancelCurrentTrip() {
     router?.cancelTrip()
     if let carplayVC = carplayVC {

    })
    let alert = CPAlertTemplate(titleVariants: [L("redirect_route_alert")], actions: [noAction, yesAction])
    alert.userInfo = [CPConstants.TemplateKey.alert: CPConstants.TemplateType.redirectRoute]
    interfaceController?.presentTemplate(alert, animated: true)
  }
  
  func showKeyboardAlert() {

      self.interfaceController?.dismissTemplate(animated: true)
    })
    let alert = CPAlertTemplate(titleVariants: [L("keyboard_availability_alert")], actions: [okAction])
    presentAlert(alert, animated: true)
  }
  
  func showErrorAlert(code: RouterResultCode, countries: [String]) {
