Remove dead code, add event, rename GadgetEditController