AccountDiaog: implement window handling
MainWindow: Handle null accounts in change_account