add dialog-class option