refactor "add" and add simple "edit"