simplify handling of "Restore Defaults" button.