Fix display bug which was leaving note list dangling at the end of document view.
Cleanup
Excising useless code.
Bug found: Premature switch over to new view.