Add functionality to delete variables / datasets from the viewer. This also includes when a dataset is "undo"-ed from the document