modal close was overriding all modal links