add history to ui