UI simple messages should go through main window

issue #255
Yes / No dialog - boolean (yes = true, no = false)
Yes / No / Cancel dialog - integer (yes = 1, no = 0, cancel = -1);