add click-out handler that helps closing the dropdown list while click outside the dropdown area