prevent losing focus when clicking outside of modal