Minor Refactoring
Create state stored in localstorage
Add clear state button