Edit corpus fields in angular