What happens is you mark the level as unlocked on start of the layout, and then the array data is loaded from LocalStorage and overwrites it.
You need to move "Levels Set value at CurrentLevel to 1" into the LoadStars function.
Also, you shouldn't load the array from LocalStorage every time players return to the menu screen. Ideally you load it only once, for example in Loader layout.