connecting chat messages handler slots correctly