Added a checkbox for publishing