If you do not want to cook it in the oven, you can directly break the eggs on the onion-tomato mixture on the gas top itself. Add a little extra water to the tomato-onion mixture so as to avoid burning and cook on very low flame with closed lid. I have tried it both on the gas top as well as the oven and it works well.