New task dialog cancel handling corrected