Made localstorage work, templating remaining