fixed up window handling with new system menubar, fixed up tray icon