add member joined and leave listeners