cleanup edit_inspector.lua a bit