fixed measure width for selector window.
tweak legend content
removed unused code, and corrected an outdated comment
moved some UI specific code to meiView.UI
some comments for future reference