added timeout for mouseleave event