fixing how we determine device for css etc