adds the gl surface view class