         dismiss(animated: true)
     }
 
-    /// Sorts the objects classes by name
-    ///
-    /// - Parameter id: a UIBarButtonItem
-    @objc func sortObjects(_ id:UIBarButtonItem) {
-        id.title = ascending == false ? RBSSortStyle.descending.rawValue: RBSSortStyle.ascending.rawValue
-        ascending.toggle()
-        if ascending {
-//            objects = objects.sorted { $0.className > $1.className }
-        } else {
-//            objects = objects.sorted { $0.className < $1.className }
-        }
-        realmBrowserView.tableView.reloadData()
-    }
-
-    @objc public func filterBaseModels(_ id: UISegmentedControl) {
-        let segmentedControl = id
-        switch segmentedControl.selectedSegmentIndex {
+    @objc fileprivate func toggleFilter() {
+        switch filterOptions.selectedSegmentIndex {
         case 0:
-//            fetchObjects()
+            engine.filterBaseModels(false)
             realmBrowserView.tableView.reloadData()
         case 1:
-//            objects = objects.filter({
-//                !$0.className.hasPrefix("RLM") &&
-//                    !$0.className.hasPrefix("RealmSwift") })
+            engine.filterBaseModels(true)
             realmBrowserView.tableView.reloadData()
         default:
             return
         }
     }
-
-    // MARK: - private Methods RealmObjectBrowserCell
+    
+    @objc fileprivate func toggleSort() {
+        
+    }
+
+    // MARK: - View setup
 
     private func configureNavigationBar() {
         navigationItem.titleView = filterOptions
-        let bbiDismiss = UIBarButtonItem(barButtonSystemItem: .stop, target: self, action: .dismissBrowser)
+        let bbiDismiss = UIBarButtonItem(barButtonSystemItem: .stop, target: self, action: .actionDismiss)
         let title = RBSSortStyle.ascending.rawValue
-        let bbiSort = UIBarButtonItem(title: title, style: .plain, target: self, action: .sortObjects)
+        let bbiSort = UIBarButtonItem(title: title, style: .plain, target: self, action: .actionSort)
         self.navigationItem.rightBarButtonItems = [bbiDismiss, bbiSort]
     }
 

        super.viewDidLoad()
        configureNavigationBar()
        configureTableView()
//        fetchObjects()
        BrowserTools.checkForUpdates()
    }


        realmBrowserView.tableView.tableFooterView = UIView()
        realmBrowserView.tableView.register(RealmObjectBrowserCell.self,
                                            forCellReuseIdentifier: RealmObjectBrowserCell.identifier)
        filterOptions.addTarget(self, action: .actionFilter, for: .valueChanged)

    }
}

private enum RBSSortStyle: String {
