popup window changes

if the user tries to open a popup when it’s already open, it refocuses
the current one instead.