GUI: fix swing issues with dialogs (2)