Add editing capability for nested elements