unselected should be before update