Fixed bug where various UI elements wasn't properly removed when an editor instance was removed.