Close button now works for modal windows