Added confirmation to clear alerts in modal via JavaScript, same as UCP.