         
         dataSource = AccountTableViewDataSource(asDataSourceForTableView: tableView)
         tableView.delegate = self
-
+        
         let title = NSLocalizedString("Accounts title", comment: "Title for navbar at accounts view")
+        logoutButton.setTitle(NSLocalizedString("log out button title", comment: "Title for log out button"), forState: .Normal)
+        logoutButton.setTitleColor(UIColor.digipostLogoutButtonTextColor(), forState: .Normal)
         
         if let showingItem: UINavigationItem = navigationController?.navigationBar.backItem {
             

        }

        navigationItem.setHidesBackButton(true, animated: false)
        
        navigationItem.backBarButtonItem = nil
        navigationItem.leftBarButtonItem = nil
        
        navigationController?.navigationBar.topItem?.setRightBarButtonItem(logoutBarButtonItem, animated: false)
        navigationController?.navigationBar.topItem?.title = title
        
    }
    
    override func viewDidAppear(animated: Bool) {

            if showingItem.respondsToSelector("setRightBarButtonItem:") {
                showingItem.setRightBarButtonItem(logoutBarButtonVariable, animated: false)
            }
            if showingItem.respondsToSelector("setBackBarButtonItem:") {
                showingItem.backBarButtonItem = nil
            }
