update main file paginator.php