add class message
Added signal and slot connection between chatbox and mainwindow