added event type targeting to toolbar API example