                 if let cTitle = callbackTitle, !cTitle.isEmpty, let cUrl = callbackUrl, !cUrl.isEmpty {
                     fav.update(customTitle: cTitle, url: cUrl, save: true)
                 }
+                self.dataSource.isEditing = false
             }
 
             self.present(editPopup, animated: true, completion: nil)


        let deleteAction = UIAlertAction(title: Strings.Remove_Favorite, style: .destructive) { _ in
            fav.remove(save: true)
        }

        let editAction = UIAlertAction(title: Strings.Edit_Favorite, style: .default) { _ in

        actionSheet.addAction(editAction)
        actionSheet.addAction(deleteAction)
        actionSheet.addAction(cancelAction)
        
        if DeviceDetector.isIpad {
            actionSheet.popoverPresentationController?.permittedArrowDirections = .any
            actionSheet.popoverPresentationController?.sourceView = thumbnailCell
            actionSheet.popoverPresentationController?.sourceRect = thumbnailCell.bounds
            present(actionSheet, animated: true, completion: nil)
        } else {
            present(actionSheet, animated: true) { _ in
                self.dataSource.isEditing = false
            }
        }
    }
}
