Add close button in preference dialog.