saving setings to local storages