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

      self.interfaceController?.dismissTemplate(animated: true)
    })
    let alert = CPAlertTemplate(titleVariants: titleVariants, actions: [okAction])
    interfaceController?.presentTemplate(alert, animated: true)
  }
  
  func showRecoverRouteAlert(trip: CPTrip, isTypeCorrect: Bool) {

    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 {
