         
         
         alertController.addAction(UIAlertAction(title: "CANCEL", style: .cancel ))
-        alertController.addAction(UIAlertAction(title: "DOWNLOAD", style: .default) { [weak self] (value) in
-            self?.downloadAction.onNext(value)
+        alertController.addAction(UIAlertAction(title: "DOWNLOAD", style: .default) { [unowned self] (value) in
+            self.downloadAction.onNext(value)
         })
-        alertController.addAction(UIAlertAction(title: "DELETE", style: .destructive) { [weak self] (value) in
-            self?.deleteAction.onNext(value)
+        alertController.addAction(UIAlertAction(title: "DELETE", style: .destructive) { [unowned self] (value) in
+            self.deleteAction.onNext(value)
         })
         
         return alertController


        /*
         tableView.rx.itemSelected
         .subscribe(  onNext: { [weak self] value in
         })
         .disposed(by: disposeBag)


            }
            else {
                
                self.performSegue(withIdentifier: "showFavoritePresentation",
                                  sender: DocumentInfo( location:location!, id:documentId, title:documentTitle) )
            }
        }
