Refactor historyItemDetailViewModel(...) function.
Refactor historyItemsDetails(...) function.
Displays the detail text for each history item.