Added listener to close dropdown on when the mouse leaves the element