some refactoring of react data table, transpose data table in snapshot