selected option feature working