no more <a> in header
implementing port listener for tab-unload, signalled by app tab onunload