How to swith to the new window