changed listener from touchstart to touchend