added an example with button click and binding