Allow user to reset settings to default.
Simplify code in settings dialog.