Closes a dropdown when another one is opened