added support for datatables and server side ajax requests.