add code edit view
add some javascript codes
add code edit functions