when currently selected node is removed, a root node becomes currently active one