added web interface code - inherited from WDC demo