Added disconnect function on server side. If user closes window it will automatically remove them from room. Also added a scroll function to chat window. When messages are received it scrolls to the bottom automatically so they are visible.