Improved window creation in start-session