Improve responsiveness by using ontouchend event