fixed adding and editing menu items