Change the action triggered when the user press the widget.