Added NotificationCenters to react to ApplicationState