Adding automatic parent selection. To support two (or more) line menu.