as an aside, we already have working modal dialogs defined, i think there's a little duplication of code going on here. try deleting a bank account on your test marketplace and you should see an example. :)