Locked Levels?

Hey guys, I have a quick question. I have many levels and on my main screen, I have a button under Start that says Levels. I want to have buttons in there that have the numbers of all the levels and when you click on one it goes to it. I know how to do that cause that's easy but here's my problem. I want to make them appear as a lock until they have reached the levels. When they reach each level, I want it to save so when they get to level 5 then levels 1, 2, 3 ,4 and 5 are all unlocked and the rest still have the lock image until they reach those levels. I also want it to stay saved so when they start their game back up, it has their stuff unlocked.
Comments
Then in the buttons to change to the levels, in the button for level 2 have its change scene rule in a rule when attribute unlockedLevels is greater then or equal to 2. In your button to change to level 3 have its change scene rule in a rule when attribute unlockedLevels is greater then or equal to 3, and you keep doing that for all the level buttons.
To save them just save attribute unlockedLevels whenever you beat a level, and make sure to have a load attribute behavior in the first scene of your game to load it.
cheers
I usually use xScope ruler to line things up on the screen.
http://www.deepblueapps.com/Deep_Blue_Ideas_Ltd./Screen_Grid.html
xScope looks a lot better to be honest.