Some improvements in preferences dialog.