Only display "remove card" dialog on finish

Also run the dialogs in the background, so that the websession continues without waiting for 
the user to close the dialog.