implemented sending chat messages