add dialog class,