angular controller is updated