                 }
                 
                 
-                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.dismiss(animated: usesAnimation) {
                        if let closure = self.didDismissModalViewClosure {
                            closure(usedAnimation)

    }
    
    #if os(iOS)
    private static func topMostViewController(_ controller: UIViewController?) -> UIViewController? {
        var isPresenting: Bool = false
        var topController: UIViewController? = controller
        repeat {
