Only call register_events on top level widget.