Ui improvements in preferences