edit selected: working with hierarchy