store interval in sessionStorage