fixed some issues with menuitems