fixing the paginator , its working now