add example enter/leave event