added paginator feature.