updated to display enter/leave events