changes to allow for main form to be openned by double clicking bede tray icon