Foldable results in results view

This is based on #251. This PR cleans it up.

Closes #251, Fixes #98