adding addToAngular call to updatewid to keep data in sync