minor fixes to click handlers on demo