Created ToHistoryItem and PurchaseHistorytableModel to display purchase history in the HistoryTab(HistoryTab undone)