Some improvements in chat room controller