Creation and editing are two separate functions