adding the ability to hide and restore the main window from the tray icon