added a check for pending alarm on app load