Fixing issue with ajax pagination selector