sessionstorage assigns id after save