added correct uI for prefernces