cancelling action properly