Try to moved device settings to index.html