Toor dal should be three fourth cooked which is best for these type of stir fries.
Adding sugar to avarakkai when steaming retains the color of vegetable.
Add coconut after switching off the flame.
After switching off let it be in kadai for some time so that all the moisture is absorbed.