         if newCollection.verticalSizeClass == .Compact
         {
             self.statusBarBackground.hidden = true;
+            var buttonFrame = self.closeButton.frame;
+            buttonFrame.origin.y = self.closeButtonPadding
+            self.closeButton.frame = buttonFrame;
         }
         
         if newCollection.verticalSizeClass == .Regular
         {
             self.statusBarBackground.hidden = false;
+            var buttonFrame = self.closeButton.frame;
+            buttonFrame.origin.y = self.closeButtonPadding + self.statusBarEstimatedHeight
+            self.closeButton.frame = buttonFrame;
         }
     }
 }

            let frame = self.frameOfPresentedViewInContainerView()
            self.presentedView()!.frame = frame

            var buttonFrame = self.closeButton.frame;
            buttonFrame.origin.y = CGRectGetHeight(self.containerView!.bounds) - 44 - self.closeButtonPadding
            self.closeButton.frame = buttonFrame;

            }, completion:nil)
    }

    
    lazy var closeButton:UIButton = {
        let button = UIButton(frame: CGRectZero)
        button.frame = CGRect(x: self.closeButtonPadding, y: self.statusBarEstimatedHeight + self.closeButtonPadding, width: 44, height: 44)
        button.setImage(UIImage(named: "close"), forState: UIControlState.Normal)
        button.tintColor = UIColor.whiteColor()
        button.addTarget(self, action: "didTap:", forControlEvents: .TouchUpInside)
