activate on run to ensure dialogs appear in foreground