onSelected now passes over the vals and text of all selected options