Clean up hint labels and frames before clicking link.

Fixes #152.
Hopefully fixes #295.