Refactoring SimpleChatFrameClient