changed way to figure out if desktop or mobile