Fix activating the application when no windows are visible, add menu button to show the main window