clean up touch and mouse events