     @IBOutlet weak var tableView: UITableView!
     @IBOutlet weak var logoutBarButtonItem: UIBarButtonItem!
     
+    var logoutBarButtonVariable: 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.logoutBarButtonItem, animated: false)
            }
            
            if showingItem.respondsToSelector("setBackBarButtonItem:") {

            showingItem.title = title
        }

        self.navigationItem.setHidesBackButton(true, animated: false)
        
        self.navigationItem.backBarButtonItem = nil
        self.navigationItem.leftBarButtonItem = nil
        
        self.navigationController?.navigationBar.topItem?.setRightBarButtonItem(self.logoutBarButtonItem, animated: false)
        self.navigationController?.navigationBar.topItem?.title = title
        
