Added isTouchScreeen detection