some fixes in Chat.java and GUI