Added confirmation before deleting a document