added tap event handler for IOS devices