saving next ID in localstorage