replace incorrect implementation of ng-mouseenter and ng-mouseleave