preferences dialog layout fix.