Completed Edit task method.