adding dialog class