load the window before setup