added the history viewer