Got history page working with both LAN and WAN

Radioi buttons will show live or historical page and sketch can tell if
user is on the LAN or WAN