fix placement of popups