Add an "Apply" button so that the settings can be previewed before closing the dialog.