parent now passed as a parameter to showSettingsUi