closes info window each time a new one is clicked