more work. added submenus to example.