changed datatable to load after data is processed