Ensure that GroupDialog is shown when switching to pages.
Fix crash at shutdown in regular layouts.