implement SharedPreference for true/false preferences