making addtomodel attribute an upsert process in ngWidApp and also fixing a bug in getwid in et-utils