add send message functionality part 3