Use class names instead of data attributes to show and hide elements