modify behavior of buttons for the dialogs so that the buttons that have focus are actually the buttons that get pressed when enter key pressed