Fixed closing windows/closing the app and added click actions on the tray icon