applet implementation