Replace outdated api in editing form. (#1)