Updated for iOS 8, along with window management fixes