Everytime a toggle change happened, settings are automatically saved into local storage