update widget class