Preheat oven to 350°F.
Chop onions and mushrooms. Mince the garlic.
Heat a saute pan to medium heat and add olive oil.
Add in the onions and garlic and saute till onions are translucent and garlic has browned.
Put in the mushrooms, spinach, the Italian seasoning, basil, and pepper. Saute till spinach is wilted. Set aside
Drain tofu from package. Add it to a large size bowl.
Add in the basil, parsley, salt, pepper and the rest if the minced garlic.
Crumble the tofu and mix all the ingredients together.
Get a square 8 inch casserole pan and add a layer of spaghetti sauce.
Add the gluten free pasta and add a layer of the tofu mix.
Add in the spinach mixture on top and add a layer of spaghetti sauce over it.
Continue the other layers till it reached the top of the baking pan.
Cover the pan with foil and bake for 30 minutes. Serve immediately and enjoy!