add send message functionality