added usage of is_mobile and is_device functions