replaced html with objects when sending updates