starting creating ChatController functions