constructor modified, for submenus