collapsed second open() call onto first
Merge pull request #234 from kevinburleigh75/open_specified_dialog_code_tweak

open_specified_dialog() code simplification