UPDATE base code for displaying using openGL