Register show/hide events for prefs widget.