added dialog class
added dialog class