added generated code for demo page