Modify class Widget