update the code type div