some optimizatin to ramp drawin in the editor and fixed some bugs from previous checking