UI, History panel: fix assembly of popupmenus when rendering only body of hdas