finished edit task functionality