Edit a task