switch from classes to data-attributes to store state data