Formatting changes to the output to match the existing.
UI update: moved "Save and Publish" into a button, and disable and change button text while publishing is executing.