Changed function name from hover to onHoverElem