finished search by options functionality