Added query interface and UIElement classes