adding events to the demo page