added send message functionality