finish select box option handling for mirrors

* remove `window.` to not pollute the global namespace
* fix on-change event handling
* select best fitting option when switching from
  mirrored to non-mirrored and vice versa