added confirmation of cancel