fixed ChatWindow and catching error throws when exiting
updated ChatWindow for scroll to bottom on new messages