Share modal should now close when clicking outside