adding another directive that listens for mouseleave