add XGLView class