Fix for dialog width problem. Added a check to ensure a dialog was not previously initialized.