Optimize hover behavior

Add entity IDs to the element class list, so that specific
elements can be selected by ID rather than needing `filter`.
Optimize label hover

Add entity IDs to the element class list, so that specific
elements can be selected by ID rather than needing `filter`.