Update widget class init