Added subscribe events so the apps can restart