wait for the window to load to catch it up with the visualizer