Sets the published state