It had to do with the nested structure necessitated for the collapsing stuff.  I don't like it nested deeper though.  How can I keep the data structure the same?  It seems it copies directly from the form.