Added desktop view special handling function to theme.js filesand call to it from pe-ap.js.