finished setting up paginator component