You can edit the task before getting the task result from a freelancer only (i.e. tasks in Created or Sent to freelancer status). You can also create a task in Created status by uploading it with Bulk upload (Tasks→Bulk load).
If you need to edit or cancel the task, move the task to the archive using the "Move to archive" button and create a new task.