improve system tray menu function