Rendering window now opens correctly