Added display and hidden modes for the dx widget.