Search and Rule ajax pagination