selectedItems is readonly so use changed object