Change functionallity of the widget