Refresh page when switching back to sensor tab