fixes to building widget