Added dialogClass for ShowModal