Moved the saving area to the note header lart so that it runs first

Thsi fixed the issue of having to click the update button twice.