add the option index that are selected/deselected