updated menu selector to show menus up to 3 levels