Improved popups (auth handling). Still totally buggy.