use onTouchEnd for mobile