add applicationDidBecomeActive / applicationWillResignActive