move init code into on_applet_added_to_panel