condition eventlistener for hover events