added pagination for items