Changed isTablet check