Added functionality for editing a label