How to account for refinancing a loan

SUGGESTED

In my accounts I have a mortgage balance of £155,000. I have refinanced the loan with a different bank to get a lower interest rate and additional money to pay off my overdraft. The new loan is £170,000 which pays off the loan, pays for professional services (Some VAT included here) £5000 and the balance goes into my bank account to settle overdraft. How do I handle this in the accounts?