Clean up some method and variable names. No functional changes.
Bugfix: if more than one window is open, only select the current one.
Add some minimal styling to the popup