render function bound to app context by default, adding a demo