update from angularjs