Store state in session storage (ecrire personnels is not working)