add function setEdits in changeBookDialog