Virtualgrid: Apply new architecture and fix bugs of demo page.