make escape cancel the publish dialog