update with code mirror