changed search to use url instead of location option.