adding events to simple example