support for touch events to close modals