Integrate HypothesisViewer into main window.
Fix loopings.