Changed the way we detect type of device in web app tab