modify cad.js ,make button function enabled