Improved chat in separate frame. Improved chat refactoring.