poll for WiFi status every 5s, also clean up a bit of table controller code