Setup ajax to refresh the data tables