Changed publish to save changes