updated demo

uses specified element attributes to maintain