added pagination changes