should get the application window from id<UIApplicationDelegate>