implementing edit task