Register show/hide events for layout widget.