changed from abstractitemview to widget