Don't open a dialog if there is already one open, fixes #208
Prevent navigation when we have open dialogs, refs #208