new version with history viewer