add sending message functionality