added confirm dialog to clear button