updated form of chatroom controoler