improvements to ajax popups