drop down menu now closes on mouse click outside the component