adding code preview to demo page