Fix storage of accounts and open popup as new window