writing the transaction and some tweaks to the display.