Better way to detect tablet, support phablets devices

The tablet detection now support Phablets devices.