First version with a working chat on the multi-window ivan's template