move widget class attribute to the front