tap event handler changed to click event due to compatibility issue