search is now performed based on the selected option