how to load a window