I don't see localstorage anywhere in your program?
Right now variable aantalklikjes is set to 100000, so when starting layout 1, you automatically go to layout 2
Also event sheet 2 doesnt have the subtract action..
And plus, no event sheet is attached to layout 2..
I'm not really sure why you use the system time compare, because as far as I know that starts counting at the start of the game and not the layout, so if you have been on layout 1 longer it will have undesired results..