set parent to dialogs. clean up
v0.30