Adding the App Listener