             break
         }
     }
-    
+}
+
+// MARK: - Logout
+extension BikeSidebarTableViewController{
+    func logout(){
+        let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
+        let loginViewController = self.storyboard?.instantiateViewControllerWithIdentifier("LoginViewController") as! LoginViewController
+        appDelegate.window?.rootViewController = loginViewController
+        
+        let loginManager = FBSDKLoginManager()
+        loginManager.logOut()
+        NSUserDefaults.standardUserDefaults().setObject(nil, forKey: "name")
+    }
 }
    @IBOutlet weak var dotHistoryLabel: UILabel!
    @IBOutlet weak var mapLabel: UILabel!
    @IBOutlet weak var dotMapLabel: UILabel!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        homeLabel.font = UIFont.mrTextStyle11Font()
        homeLabel.textColor = UIColor.whiteColor()
        dotHomeLabel.hidden = false
        dotHistoryLabel.hidden = true
        dotMapLabel.hidden = true
        
        setupLogoutButton()
        
    }
    
    func setupLogoutButton(){

        
        self.view.addSubview(button)
    }
}

// MARK: - View LifeCycle
extension BikeSidebarTableViewController{
    override func viewDidLoad() {
        super.viewDidLoad()
        setupLabel()
        setupLogoutButton()
    }
    
    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
        TrackingManager.sharedManager.createTrackingScreenView("view_in_menu")
    }
}

// MARK: - TableView
extension BikeSidebarTableViewController{
    override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        
        return 1
