cleanup, tippos
new function: build menu dom and insert into outer editor