added demo file for event handling