delete button for both and message box.