working with the callback function of sending the story