update webdemo codes to dynamic attributes