handle item visibility in icon context menu