dialog class

newDialog, showDialog & etc