added appState to monitor applications different states