change classes to data-attr