modify tpl.js  and wms modal