new function to determine if the device is an ipad