fixed search to route the search string properly