window is now set in the constructor