local storage saving! lot of templating