Added alternate widget definition in terms of equations and relations