edit chatroom and fix bugs