working on submenu - recommend refactor i that is not recursive