Added the toSend object and changed the html for editor