Recreate the preferences box as needed, in case it is used twice.