set ratio in prefs as an ingeger field