added check for alerts to see if app is running on device