With [remoteStorage.onWidget](http://remotestoragejs.com/doc/code/files/remoteStorage-js.html#remoteStorage.onWidget) you can bind to the "state" event. Once the state is "disconnected", the app should clear all data from the UI.