added pagination feature to category listings