Add AJAX function to update the data table.