moved init to glwidget