Added autoclose to widget.