cosmetic changes
add some routins to check the availability of system tray icon