uh oh. don't think I can accept this pull request as is:

There is both a "create" path and an "edit' path in save_exam_ajax.  I don't think you're handling the "edit" path in the new code for changing these parents, but it should be a short fix.