add measure location menu
improve js imports for minified switch