better save state and started on windows and tab management