change click to tap function