Paginate feature

Added paginate feature