implemented functionality on HistoryActivity