Changed HTML in publish function