Added ua detection for ios