add code to demo page