Better way to detect tablet, support phablets devices

The tablet detect now support Phablets devices.