updatePrettyToggle function

Change the value of a pretty toggle on the client