angular controller update for profile