 			}
 		}
 		confirmDialog.addAction(AlertButton(.cancel, title: "Cancel")) {}
-		self.navigationController?.parent?.present(confirmDialog, animated: false, completion: nil)
+
+		if let delegate = UIApplication.shared.delegate as? AppDelegate {
+			delegate.window?.rootViewController?.present(confirmDialog, animated: false, completion: nil)
+		}
 	}
 
 	func showVideoPlayerView() {

		viewController.presentingViewController?.dismiss(animated: true, completion: nil)
	}
}

			return
		}
		if timer.conflict {
			// TODO: some action
			return
		} else if timer.manual {
			let confirmDialog = AlertController("Delete timer?",
