Updating reference fields made easy

This works for referencing, but it does not work for editing or updating.