Cleaned code in configuration dialog.