moved dependencies

dependencies linked with widgethandler were moved from building to
buildingWidget