Fixes #7. Only displays as most a single preview.

Fixed:
- closed previews reopening on tab change
- toggling does not close open preview