add send message functionality part 2