Thank you; The line numer the code actually had to be applied to was 148 maybe it depens on upgarde and files replaced during the upgrade. In the event others a looking for this solution you want to add window.close(); just below the list code
<script>
alert("Message sent! We will respond as soon as possible.");
window.close();
</script>