updated demo to show usage of onChange new parameter.

Signed-off-by: Hafiz Bistar <hafiz.bistar@gmail.com>