Updated and removed child creation upon sendData function