Add ajax for group joining and leaving