applet code moved for applets in mgg