removed embeded json, using local storage properly