Use common code for history viewer and PGN viewer.