added all UIApplicationDelegate methods as of iOS8.0