Added applicationDidBecomeActive behavior