removed unneeded null parameter from help-button calls to refactored cd.dialog()
minor refactoring
minor refactoring