diff: add listeners for DiffViewerBase