add conditional logic for join/leave action on event