Fixes #35 - Autoselect contract on edit.

Also fixes a bug where the contract fields weren't hidden properly on
new transaction creation