a ui implementation for the widget