Create a new MenuElement; may either be the root menu, or a submenu (set isRoot accordingly)
the name for this menu
whether this is a root menu, or a submenu