made applet functional