- fixed the jstree structure after the unit edit
- deleted some unnecessary debugging statements