                 }
                 
                 
-                if let rootController = getRootViewController() {
+                if let rootController = Manager.getRootViewController() {
                     rootController.present(storeViewController, animated: usesAnimation) {
                         self.modalPanelOpen = true
                         

                    
                    // get the top most controller (= the StoreKit Controller) and dismiss it
                    if let presentingController = UIApplication.shared.keyWindow?.rootViewController {
                        if let topController = topMostViewController(presentingController) {
                            topController.present(alertView, animated: usesAnimation) { [weak self] _ in
                                if let closure = self?.didDisplayAlertClosure {
                                    closure()

        return topController
    }
    
    private static func getRootViewController() -> UIViewController? {
        if var window = UIApplication.shared.keyWindow {
            
            if window.windowLevel != UIWindowLevelNormal {
