     
     override func viewWillAppear(animated: Bool) {
         let defaults = NSUserDefaults.standardUserDefaults()
-        checkedEvents = defaults.objectForKey("checked") as! [Bool]
+        checkmarkedEvents = defaults.objectForKey("filterCheckmarks") 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
-
+        let filterButtonItem = UIBarButtonItem(image: filterImage, style: UIBarButtonItemStyle.Plain, target: self, action: #selector(NotificationVC.filterButton(_:)))
         tabBarController?.navigationItem.rightBarButtonItem = filterButtonItem
     }
     

            count += 1
        }
        
        Tapglue.retrieveEventsFeedForCurrentUserForEventTypes(types) { (feed: [AnyObject]!, error: NSError!) -> Void in
            if error != nil {
                print("\nError retrieveEventsFeedForCurrentUserForEventTypes: \(error)")
            } else {
                dispatch_async(dispatch_get_main_queue(), { () -> Void in
                    self.currentUserEvents = feed as! [TGEvent]
                    self.notificationsTableView.reloadData()
                })
                self.refreshControl.endRefreshing()

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