Update code mirror and change the behavior on click. Related to 320