adds search funcitonality and dropdown menu of results