save state of datatables