fix var names of buttons in dialog