update the demo to reflect the added frame change method