         NotificationCenter.default.addObserver(self, selector: #selector(addStingFromFiles), name: .addStingFromFiles, object: nil)
         NotificationCenter.default.addObserver(self, selector: #selector(applySnapshot), name: .stingsDidChange, object: show)
         NotificationCenter.default.addObserver(self, selector: #selector(reloadEditedSting(_:)), name: .didFinishEditing, object: nil)
+        NotificationCenter.default.addObserver(self, selector: #selector(showStateChanged(_:)), name: UIDocument.stateChangedNotification, object: show)
     }
     
     override func viewWillLayoutSubviews() {

        else { return }
        
        show.insert(show.removeSting(at: sourceIndexPath.item), at: destinationIndexPath.item)
        applySnapshot()
        coordinator.drop(sourceItem.dragItem, toItemAt: destinationIndexPath)
    }
}

    @objc func reloadEditedSting(_ notification: Notification) {
        guard let sting = notification.object as? Sting else { return }
        reloadItems([sting])
    }
    
    @objc func showStateChanged(_ notification: Notification) {
        print("Show State Changed \(show.documentState)")
    }
    
    @IBAction func closeShow() {
