Added delete and edit functionality to attributes