Add edit task functionality