Add more flexibility to the ajax wrapper in order to support ajax pagination in tables