added controller for chatroom