fix gone buttons
rework js around tree_editor