fixes to use the window rather than the renderer