added checks to makes sure no other exception is thrown within the dialog creation...