added search and backend code for the search in home . having error if I click next page after searching.