add constraints (widget/resource)