update structure angularjs