adjust functionality to edit the attributes