Changed scattered window focus listeners to one global awtevent listener
in MainGui for the user action dialog.