Cleanup layout of preferences dialog.