Changed how popups are displayed