changed widget update procedure