added template to make copy to body
added local storage code, still not working