fix click handler to touchend