[Code] Moved history menu into separate HistoryMenu class