added codemirror support and started fixing handles