working with alert in the DOM