fix issues with diff viewer

- things got broken when you open a second diff viewer