You need to save the menu name first. After which you can add menu items to the menu.