automaticly select parent menu items of the selected menu item