header clickable when modal open, close previous modal when opening new modal