fixed the url parameters and search method