fix applet preferences, move XML code to Preferences, as we may want to use it as standard format soon