update sessionStorloage method