add iPad detection to fix clear