fixing demo's onclick