added toggle to enable as sessionStorage