fix 2 problems 1. selected node becomes active when deleting nodes in a level, no undo when lnodes with links deleted