added localStorage for saving config options