added alert for reset