change applet to widget