move mapTools HTML structure from OLWebGIS.js to index.html; rebuild only legend part when switching themes