Adding classes to attributes elements