     func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
 
         if (segControl.selectedSegmentIndex == 0) {
-            return self.notificationsData.count
+            return self.eventsData.count
         }else if (segControl.selectedSegmentIndex == 1) {
             return self.issuesData.count
         }else if (segControl.selectedSegmentIndex == 2) {
-            return self.eventsData.count
+            return self.notificationsData.count
         }
         
         return 0

    func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
        
        if segControl.selectedSegmentIndex == 0 {
            return 55
        }else if(segControl.selectedSegmentIndex == 1){
            return 75
        }else if(segControl.selectedSegmentIndex == 2){
            let event:ObjEvent = self.eventsData[indexPath.row]
            let eventType:EventType = EventType(rawValue: (event.type!))!
            
            switch(eventType) {
            case .WatchEvent:
                return 45
                
            case .CreateEvent:
                return 65
                
            case .PushEvent:
                
                let height:CGFloat = CGFloat( (event.payload?.commits!.count)! ) * 20.0
                let totalHeight:CGFloat = 70+height
                return totalHeight
                
            default:
                return 0
                
            }
        }
        return 0
    }

        }
        self.tableView.reloadData()

        if( (self.segControl.selectedSegmentIndex == 0)&&self.eventsData.isEmpty ){
            self.svc_getUserEventsRequest(self.eventPageVal)
            self.tableView.allowsSelection = false
        }else if( (self.segControl.selectedSegmentIndex == 1)&&self.issuesData.isEmpty ){
            self.tableView.allowsSelection = true
            self.mvc_getIssuesRequest(self.issuesPageVal)
        }else if( (self.segControl.selectedSegmentIndex == 2)&&self.notificationsData.isEmpty ){
            self.mvc_getNotificationsRequest(self.notisPageVal)
        }else{
            
        }
