                     self.performSegueWithIdentifier("gotoDocumentsFromAccountsSegue", sender: self)
                 }
             }
-            
         }
-        
-
     }
     
     override func viewWillAppear(animated: Bool) {

        self.dataSource = AccountTableViewDataSource(asDataSourceForTableView: tableView)
        self.tableView.delegate = self
        self.logoutBarButtonVariable = self.logoutBarButtonItem
        
        let firstVC: UIViewController = self.navigationController!.viewControllers[0] as UIViewController
        
        if firstVC.navigationItem.rightBarButtonItem == nil {
            firstVC.navigationItem.setRightBarButtonItem(self.logoutBarButtonItem, animated: false)
        }

        firstVC.navigationItem.leftBarButtonItem = nil
        firstVC.navigationItem.rightBarButtonItem = nil
        
        firstVC.navigationItem.titleView = nil
        
        if UIDevice.currentDevice().userInterfaceIdiom == .Pad {

        POSAPIManager.sharedManager().updateRootResourceWithSuccess({ () -> Void in
            }, failure: { (error: NSError!) -> Void in
                
                if let actualError = error {
                    let key = AFNetworkingOperationFailingURLRequestErrorKey
                    
                    let response =  actualError.userInfo![key] as NSHTTPURLResponse
                    
                    if response.isKindOfClass(NSHTTPURLResponse) {
                        if (POSAPIManager.sharedManager().responseCodeIsUnauthorized(response)) {
