detect device type via UserInterfaceIdiom

using screen.width and screen.height is a poor way to detect device type.