     func applicationWillEnterForeground(application: UIApplication) {
         // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
         print("applicationWillEnterForeground")
-        print(application)
         
         Answers.logCustomEventWithName("Application Will Enter Foreground",
                                        customAttributes: [:])

        
        // It is always best to load Armchair as early as possible
        // because it needs to receive application life-cycle notifications
        //
        // NOTE: The appID call always has to go before any other Armchair calls
        Armchair.appID(APP_ID)
        Armchair.debugEnabled(true)

        // Initialize global UI elements ** Must come after setting self.window attributes
        globalUI()
        
        // initialize rootviewcontroller *important
        let viewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("RootViewController")
        self.window!.rootViewController = viewController
        // Assign the init view controller of the app
        firstTime()
        
        // Save state tab bar
        if let tabBarController = window?.rootViewController as? UITabBarController {
            // print(UIApplication.sharedApplication().applicationIconBadgeNumber)
            for item in tabBarController.tabBar.items! {
                if let image = item.image {
                    item.image = image.imageWithRenderingMode(.AlwaysOriginal)
