added clearSelectedMenuItems