Added to and leave event in to api