fix card editing form and process, fix import