Added touchevent to prevent close when tapping inside a modal