allow customizing ReferenceProxy.editTemplate