cleaning up editor UI code