Link MainWindow with ChatWindow