add leave event, and join event