Closing the dropdown on click