added call to addToAngular in updatewid, commented out clearing of localStorage in config-local, and changed addToAngular to an upsert process