better handling of hoverClass