     
     // Segmented Control
     let _segmentedControl = UISegmentedControl()
+    _segmentedControl.addTarget(self, action: #selector(self.segmentedControlValueDidChange(sender:)), for: .valueChanged)
     _segmentedControl.backgroundColor = UIColor.white
 
     _segmentedControl.insertSegment(withTitle: "Tweets", at: 0, animated: false)

        
        // bring stickyHeader to the front
        self.mainScrollView.bringSubview(toFront: self.stickyHeaderContainerView)
      } else if contentOffset.y > 0 {
        self.mainScrollView.bringSubview(toFront: self.profileHeaderView)
        self.stickyHeaderContainerView.frame = computeStickyHeaderContainerViewFrame()
      }

  var blurEffectView: UIVisualEffectView!
  
  var tweetTableView: UITableView!
  var photosTableView: UITableView!
  var favoritesTableView: UITableView!
  
  var segmentedControl: UISegmentedControl!
  
