now uses opengl window