Improved TrayIcon behavior