pagination and search on click/enter