Changed how the widget is updated