added code to head for device width