Update onSelect event