popup replaced with app page in new tab, use preferences file rather than db table