modify Widget class