     
     @IBOutlet weak var notificationsTableView: UITableView!
     
-    var checkedEvents: [Bool] = []
+    var checkmarkedEvents: [Bool] = []
     
     // TGEvent arr
-    var currentUserEvents: [TGEvent] = []
+    var filteredEvents: [TGEvent] = []
     
     var refreshControl: UIRefreshControl!
     

    
    override func viewWillAppear(animated: Bool) {
        let defaults = NSUserDefaults.standardUserDefaults()
        checkedEvents = defaults.objectForKey("checked") as! [Bool]
        
        self.loadNotificationFeed()
        
        let filterImage = UIImage(named: "SortFilled")
        let filterButtonItem = UIBarButtonItem(image: filterImage, style: UIBarButtonItemStyle.Plain, target: self, action: #selector(NotificationVC.filterButton(_:))) //Use a selector

        tabBarController?.navigationItem.rightBarButtonItem = filterButtonItem
    }
    

    }
    
    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        print(filteredEvents.count)
        return filteredEvents.count
    }
    
    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! NotificationTableViewCell
                
        cell.configureCellWithEvent(filteredEvents[indexPath.row])
        
        return cell
    }
