change deprecated remoteStorage.onWidget to remoteStorage.on