Small improvements to ConfigurationWidget. Its a bit smarter when hiding
buttons in the button box when they are not required.