Dispose on close window.
Fixed xml editor updating.