Adding ajax pagination

this will generate a warning on $onClick variable if disabled