save function works

save to local storage works