change mouseup to touchEnd