ensure that the glwidget is returned