add send message functionality part 1