resets timer if the browser isnt closed