When hitting the publish button: 