Multi Layer Tabular form with TabularInputManager extension

i am using ztabularinputmanager to manage tabular inputs, but how i can use it when there exists multiple tabular input set like, a restaurant have multiple food categories, and food categories have multiple food items.

when implement that system, it create trouble like this-----> adding categories no problem, add menu items no problem, BUT suppose i add 1 category with 3 food item, when i create another category i displays with previous 3 food item and deleting food items from anyone category just deletes form all category. which i don’t want.

I want to add food items as many as i want but adding new category wouldn’t repeat them. how i can do that? please help me