Close the dropdown on second click on header