Made pagination through get requests