significantly improved touch and click events by adding conditional statement that detects iOS