switch from update to edit