move hover behavior to a class of its own