add paginate function on jkelly