the supreme court invalidated the last will on the grounds of undue influence , and gave as a significant reason the fact that the `` surprise beneficiary '' had been so involved in the making of the new will .