update widget when data in app is changed
fixed minor bug