initial entry of plugin and some GUI code