improved encapsulation of QMLWeb