update window creation