fixed issues still problem with saving to localstorgage