fixed the Alert in Dashboard when success = True