change click/tap event listener so it works on desktop and mobile