update codes editor: use REST api to get names