added onjoin for chatroom