Ok let me see if im correct.
Layout 1
1. check if the key exist.
2. if exist get it and show it in the text.
3. if not creat the key
4. on click add one to text.
5 on click go to layout 2
Layout 2
1. on start show the number on text2
2. save the key to localstorage
3. on click go to layout 1.
is this correct or im missing something?
Thanks death for the help.