         
         self.view.addSubview(button)
     }
-    
-    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")
+// 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")
     }
-    
-    override func didReceiveMemoryWarning() {
-        super.didReceiveMemoryWarning()
-        
-    }
-    
-    // MARK: - Table view data source
-    
+}
+
+// MARK: - TableView
+extension BikeSidebarTableViewController{
     override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
         
         return 1

            break
        }
    }
    
}
    @IBOutlet weak var dotHistoryLabel: UILabel!
    @IBOutlet weak var mapLabel: UILabel!
    @IBOutlet weak var dotMapLabel: UILabel!
}

// MARK: - Setup
extension BikeSidebarTableViewController{
    func setupLabel(){
        homeLabel.font = UIFont.mrTextStyle11Font()
        homeLabel.textColor = UIColor.whiteColor()
        dotHomeLabel.hidden = false
        dotHistoryLabel.hidden = true
        dotMapLabel.hidden = true
    }
    
    func setupLogoutButton(){
