hide modal when clicking outside of it