stop periodic refresh when page is hidden