added pagination to category pages