opengl viewer working