DetailedHistoryTableModel and some refactoring