refactor, object.is_sent check changed to html tags.