Added option to enable/disable dialog display.

Why change this line?