set each dialogue window to be modal

modal meaning users can't interact with main window till the dialogue
window is closed.