edit task functionality