I find that baking them, rather than frying keeps their shape. It is due to the moisture in the meatball, the hot oil makes it escape and this makes them fall apart. Baking is a gentler heat method. You can also cook them right in the tomato sauce, but they will not brown.