improve layout of widgets in config dialog