Updated labels.edit method