Save the state in localStorage
Content template and json structure