remove direct access to sessionStorage.