Change widget code