             let result: Results<DynamicObject> = realm.dynamicObjects(schema.className)
             objects = Array(result)
             realmView.tableView.reloadData()
-            
+
             navigationItem.leftBarButtonItem = nil
             navigationItem.rightBarButtonItem?.title = "Select"
         } else {
             navigationItem.rightBarButtonItem?.title = "Delete"
-            let bbi = UIBarButtonItem(title: "Select All", style: .plain, target: self, action: .selectAll)
-            navigationItem.leftBarButtonItem = bbi
+            let selectAllBBi = UIBarButtonItem(title: "Select All",
+                                               style: .plain,
+                                               target: self,
+                                               action: .selectAll)
+            navigationItem.leftBarButtonItem = selectAllBBi
         }
     }
     @objc func actionSelectAll(_ id: AnyObject) {

            }
        }
    }
    
    // MARK: - private Methods
    
    @objc func actionToggleEdit(_ id: AnyObject) {
        realmView.tableView.allowsMultipleSelection = true
        realmView.tableView.allowsMultipleSelectionDuringEditing = true

            } catch {
                print("Could not perform deletion. Error \(error)")
            }

        }
    }

    // MARK: - UIViewControllerPreviewingDelegate

    @available(iOS 9.0, *)
    public func previewingContext(_ previewingContext: UIViewControllerPreviewing,
                                  viewControllerForLocation location: CGPoint) -> UIViewController? {
        guard let indexPath = realmView.tableView.indexPathForRow(at:location) else { return nil }
        guard let cell = realmView.tableView.cellForRow(at:indexPath) else { return nil }

        let detailVC =  RBSRealmPropertyBrowser(object: data()[indexPath.row], realm: realm)
        detailVC.preferredContentSize = CGSize(width: 0.0, height: 300.0)
        previewingContext.sourceRect = cell.frame

        return detailVC
    }

    @available(iOS 9.0, *)
    public func previewingContext(_ previewingContext: UIViewControllerPreviewing,
                                  commit viewControllerToCommit: UIViewController) {
