How to prevent backtracking in the menu

I'm using the multi screen menu tutorials for one of my games (
and
). I have my game set up so when you beat the level (reach a certain score, out of items, ect) it changes the scene and unlock. This works just fine if you don't plan on playing past levels again. But if you play an older level it changes the unlock to a lower number and re-locks levels you could have already unlocked. For example you have up to level 4 unlocked (unlock would be 4) if you play level 2 it changes unlock to 2 and then 3&4 are locked again. Any idea how to fix this?



Answers
@tshirtbooth - it's going to take me a while to get use to your new picture.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx