fix variable scope issue in Menu::showDialogue()
some minor improvements/fixes
coverity