added code and nested editor