Clean up dialog code

TODO: fix dialog for cancelled tx from Trezor