update clear button

added a confirm and alert message(s) for the button.