         super.viewDidLoad()
         self.dataSource = POSAccountViewTableViewDataSource(asDataSourceForTableView: self.tableView)
         
+        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
         

    @IBOutlet weak var tableView: UITableView!
    @IBOutlet weak var logoutBarButtonItem: UIBarButtonItem!
    
    var refreshControl: UIRefreshControl?
    var dataSource: POSAccountViewTableViewDataSource?
    

        let title = NSLocalizedString("Accounts title", comment: "Title for navbar at accounts view")
        
        if let showingItem: UINavigationItem = self.navigationController?.navigationBar.backItem {
            
            showingItem.hidesBackButton = true
                        
            if showingItem.respondsToSelector("setLeftBarButtonItem:") {
                showingItem.setLeftBarButtonItem(nil, animated: false)
            }
            
            if showingItem.respondsToSelector("setRightBarButtonItem:") {
                showingItem.setRightBarButtonItem(self.logoutBarButtonVariable, animated: false)
            }
            
            if showingItem.respondsToSelector("setBackBarButtonItem:") {
