Display history item titles next to the brackets.
Refactor historyItemsDetails(...) function.