I want the selected option to be updated immediately so that it cannot be selected again