update the inspector after deleting objects