an event when a document is trashed or restored