added pagination for items at search page