Make publish show a dialog instead of being immediate.