completed edit task function